import request from '@/utils/request'
// 获取-权限点列表
export function getPermissionList(params) {
  return request({
    url: '/sys/permission',
    params
  })
}
// 新增-权限点
export function addPermissionList(data) {
  return request({
    method: 'post',
    url: '/sys/permission',
    data
  })
}
// 获取-权限点详情
export function getPermissionDetail(id) {
  return request({
    url: `/sys/permission/${id}`
  })
}
// 修改-权限点详情
export function updatePermission(data) {
  return request({
    url: `/sys/permission/${data.id}`,
    method: 'put',
    data
  })
}
// 删除-权限点
export function delPermission(id) {
  return request({
    method: 'delete',
    url: `/sys/permission/${id}`
  })
}
